home *** CD-ROM | disk | FTP | other *** search
- // -----
- // VDL151.txt
- // Copyright 1996 Claris
- // -----
-
-
- //Pict Editor
-
-
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
-
- //This section contains all localizable string constants for this VDL program. Be sure to
- //include the backslash character at the end of each line of a multi-line string, except for the last line.
- //You may also flatten multiline constants into a single line, if you prefer
-
-
- #define kLit1 "Copy this image (drag to insert a copy)"
- #define kLit2 "Selection Tool"
- #define kLit3 "Rectangular Link Tool"
- #define kLit4 "Circular Link Tool"
- #define kLit5 "Transparency Tool"
- #define kLit6 "Remove Transparency"
- #define kLit7 "Link Editor"
- #define kLit8 "Move Link To Front"
- #define kLit9 "Move Link To Back"
- #define kLit10 "Move Link Forward"
- #define kLit11 "Move Link Backward"
- #define kLit12 "Interlace"
- #define kLit13 "Don't Interlace"
- #define kLit14 "Default URL:"
- #define kLit15 "URL when not in a link"
- #define kLit16 "Links:"
- #define kLit17 "Show/hide link URLs"
- #define kLit18 "Show URLs"
- #define kLit19 "Hide URLs"
- #define kLit20 "Zoom:"
- #define kLit21 "Image zoom"
- #define kLit22 "6%"
- #define kLit23 "12%"
- #define kLit24 "25%"
- #define kLit25 "50%"
- #define kLit26 "100%"
- #define kLit27 "200%"
- #define kLit28 "400%"
- #define kLit29 "800%"
- #define kLit30 "1600%"
-
- //Note: the file name will probably not change, but the name of the "Help" folder
- //probably will. Note that the translated name MUST be 8 chars or less.
- #define kHelpURL "Help/ImageMap.htm"
- #define kHelpTitle "&Help"
-
- //Localized Fonts
-
- #if Platform_Mac
- #define kStaticTextFont Font = {Geneva, 10, {Plain}}
- #define kBoldStaticFont Font = {Geneva, 10, {Bold}}
- #define kHelpFont Font = {Geneva, 9, {Italic}}
- #else
- #define kStaticTextFont Font = SystemFont
- #define kBoldStaticFont Font = SystemFont
- #endif
-
-
- /************************** LOCALIZED STRING CONSTANTS END **************************************/
- /************************** LOCALIZED STRING CONSTANTS END **************************************/
- /************************** LOCALIZED STRING CONSTANTS END **************************************/
-
-
-
- /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
-
- //This section contains integer constants that are used to format this VDL program.
- //These are localizable - they only need to be changed if the localized strings
- //are sufficiently longer than the US strings. Localize the strings first, then the constants.
-
- #if Platform_Win
- //Width of the "Links" popup
- #define kLinksPopupWidth 165
-
- //Width of the "Zoom" popup
- #define kZoomPopupWidth 120
- #endif
-
-
- /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
-
- //No further localizable data past this point
-
- /************************** END LOCALIZABLE DATA ***************************************************/
- /************************** END LOCALIZABLE DATA ***************************************************/
- /************************** END LOCALIZABLE DATA ***************************************************/
-
- #define kStandardSpace 9
-
- #define EH EnabledHelpString =
-
- #if Platform_Mac
- #define ToolSep GenericView("ToolSepView");
- #else
- #define ToolSep
- #endif
-
- #if Platform_Mac
- #define DialogBack BackColor = {57015, 57015, 57015}
- #else
- #define DialogBack BackColor = Dialog
- #endif
-
-
- Define(HotspotCreationTools)
- HList(FullyCovered,DialogBack)
- {
- Spacer(Width = kStandardSpace, Height = UseParent);
- ToolSep
- PictRadioButton(3111, 10, EH kLit2) //Arrow
- {
- On(Draw, 'cicn', 10007);
- Off(Draw, 'cicn', 10006);
- DisabledOn(Draw, 'cicn', 10008);
- DisabledOff(Draw, 'cicn', 10008);
- TrackingOn(Draw, 'cicn', 10007);
- TrackingOff(Draw, 'cicn', 10007);
- };
- ToolSep
- PictRadioButton(3111, 0, EH kLit3) //Rect
- {
- On(Draw, 'cicn', 10001);
- Off(Draw, 'cicn', 10000);
- DisabledOn(Draw, 'cicn', 10002);
- DisabledOff(Draw, 'cicn', 10002);
- TrackingOn(Draw, 'cicn', 10001);
- TrackingOff(Draw, 'cicn', 10001);
- };
- ToolSep
- PictRadioButton(3111, 1, EH kLit4) //circle
- {
- On(Draw, 'cicn', 10004);
- Off(Draw, 'cicn', 10003);
- DisabledOn(Draw, 'cicn', 10005);
- DisabledOff(Draw, 'cicn', 10005);
- TrackingOn(Draw, 'cicn', 10004);
- TrackingOff(Draw, 'cicn', 10004);
- };
- }
-
- Define(HotspotEditingTools)
- HList(FullyCovered,DialogBack)
- {
- Spacer(Width = kStandardSpace, Height = UseParent);
- ToolSep
- PictPushButton(3109, "None", EH kLit7) // "Insert/Edit Link"
- {
- Enabled (Draw, 'cicn', 13506);
- Disabled(Draw, 'cicn', 13508);
- Tracking(Draw, 'cicn', 13507);
- };
- ToolSep
-
- Spacer(Height = UseParent, Width = kStandardSpace);
- ToolSep
- PictPushButton(1212, "None", EH kLit8) // ccMoveToFront
- {
- Enabled (Draw, 'cicn', 10070);
- Disabled(Draw, 'cicn', 10072);
- Tracking(Draw, 'cicn', 10071);
- };
- ToolSep
- PictPushButton(1213, "None", EH kLit9) // ccMoveToBack
- {
- Enabled (Draw, 'cicn', 10080);
- Disabled(Draw, 'cicn', 10082);
- Tracking(Draw, 'cicn', 10081);
- };
- ToolSep
- PictPushButton(1214, "None", EH kLit10) // ccMoveForward
- {
- Enabled (Draw, 'cicn', 10090);
- Disabled(Draw, 'cicn', 10092);
- Tracking(Draw, 'cicn', 10091);
- };
- ToolSep
- PictPushButton(1215, "None", EH kLit11) // ccMoveBackward
- {
- Enabled (Draw, 'cicn', 10100);
- Disabled(Draw, 'cicn', 10102);
- Tracking(Draw, 'cicn', 10101);
- };
- ToolSep
- }
-
- Define(UpperToolbar)
- Margin(6,7,0,5,Width = UseParent, DialogBack)
- VList(Width = UseParent, DialogBack)
- {
- HList(Width = UseParent,FullyCovered)
- {
- Switch(imageType)
- {
- case 999:
- Spacer(Height = 0, Width = 0);
-
- default:
- VList(Height = UseParent)
- {
- Margin(1,0,0,0)
- PictPushButton( 3122, "None", Draggable,
- EH kLit1 )
- {
- On(Draw, 'cicn', 1006);
- Disabled(Draw, 'cicn', 1006);
- Tracking(Draw, 'cicn', 1006);
- };
- Spacer(Height = UseParent, Width = UseParent);
- }
- } //Switch
-
-
- Switch(GIFSettingsOnly)
- {
- case 1:
- Spacer(Height = UseParent, Width = kStandardSpace);
-
- default:
- Call(HotspotCreationTools);
- }
-
- ToolSep
-
- Switch(imageType)
- {
- case 0: /* GIF */
- HList()
- {
-
- Switch(GIFSettingsOnly)
- {
- case 1:
- Spacer(Height = 0, Width = 0);
-
- default:
- HList()
- {
- PictRadioButton(3111, 11, EH kLit5) //Eyedropper
- {
- On(Draw, 'cicn', 10010);
- Off(Draw, 'cicn', 10009);
- DisabledOn(Draw, 'cicn', 10011);
- DisabledOff(Draw, 'cicn', 10011);
- TrackingOn(Draw, 'cicn', 10010);
- TrackingOff(Draw, 'cicn', 10010);
- };
- ToolSep
- Spacer(Height = UseParent, Width = kStandardSpace);
- ToolSep
- }
- }
-
- PictPushButton(3320, "None", EH kLit6) // ccMakeOpaqueImage
- {
- Enabled (Draw, 'cicn', 10050);
- Disabled(Draw, 'cicn', 10052);
- Tracking(Draw, 'cicn', 10051);
- };
- ToolSep
- }
-
- default:
- Spacer(Height = 0, Width = 0);
- }
-
- Switch(GIFSettingsOnly)
- {
- case 1:
- Spacer(Height = 0, Width = 0);
-
- default:
- Call(HotspotEditingTools);
- }
-
- Spacer(Height = UseParent, Width = kStandardSpace);
-
- Switch(imageType)
- {
- case 0: /* GIF */
- HList()
- {
- ToolSep
- PictRadioButton( interlace, 1, // ccPictInterlaceCmd
- EH kLit12 )
- {
- On (Draw, 'cicn', 10110);
- Off (Draw, 'cicn', 10111);
- DisabledOn (Draw, 'cicn', 10112);
- DisabledOff(Draw, 'cicn', 10112);
- TrackingOn (Draw, 'cicn', 10110);
- TrackingOff(Draw, 'cicn', 10110);
- };
- ToolSep
- PictRadioButton( interlace, 0, // ccPictInterlaceCmd
- EH kLit13 )
- {
- On (Draw, 'cicn', 10120);
- Off (Draw, 'cicn', 10121);
- DisabledOn (Draw, 'cicn', 10122);
- DisabledOff(Draw, 'cicn', 10122);
- TrackingOn (Draw, 'cicn', 10120);
- TrackingOff(Draw, 'cicn', 10120);
- };
- ToolSep
- Spacer(Width = kStandardSpace, Height = UseParent);
- }
-
- default:
- Spacer(Height = 0, Width = 0);
- }
-
-
- Spacer(Width = UseParent, Height = UseParent);
- } // HList (first row)
-
- #if Platform_Mac
- Margin(0,2,0,0)
- HelpView(Width = UseParent, Alignment = Center, Height = 12, kHelpFont);
- #endif
-
- } // VList
-
- Define(URLEntry)
- HList(DialogBack, Width = UseParent)
- {
- Margin(4,3,6,0)
- StaticText(kLit14, kBoldStaticFont);
-
- EditText( defaultURL, FilterProc = "SetImageDefaultURL",
- Width = 211, DropOnReturn, NoSmartQuotes,
- NoSmartEdits,
- BackColor = {65535, 65535, 65535},
- EH kLit15 );
-
- Margin(4, 0, 0, 0)
- GenericView("ImageLinkShortcut");
- } // HList (second row)
-
-
-
- Define(URLToolbar)
- HList(DialogBack, Width = UseParent)
- {
- Spacer(Width=6, Height=0);
- #if Platform_Mac
- Margin(0,1,4,0)
- StaticText( kLit16, Alignment = Right,
- kBoldStaticFont);
- IntegerPopup( "", 0, 3123, // ccShowURLsCmd
- kStaticTextFont,
- EH kLit17, DontBind )
- #else
- IntegerPopup( kLit16, Default, 3123, Width = kLinksPopupWidth, // ccShowURLsCmd
- EH kLit17, DontBind )
- #endif
- {
- IntItem(kLit18, 1);
- IntItem(kLit19, 0);
- };
- Spacer(Width = 20, Height = 0);
-
- #if Platform_Mac
- Margin(0,1,4,0)
- StaticText( kLit20, Alignment = Right,
- kBoldStaticFont);
- IntegerPopup( "", 0, 3121, // ccZoomToCmd
- kStaticTextFont,
- EH kLit21, DontBind )
- #else
- IntegerPopup( kLit20, Default, 3121, Width = kZoomPopupWidth, // ccZoomToCmd
- EH kLit21, DontBind )
- #endif
- {
- IntItem(kLit22, 5);
- IntItem(kLit23, 10);
- IntItem(kLit24, 25);
- IntItem(kLit25, 50);
- IntItem(kLit26, 100);
- IntItem(kLit27, 200);
-
- #if Platform_Mac
- IntItem(kLit28, 400);
- IntItem(kLit29, 800);
- IntItem(kLit30, 1600);
- #endif
- };
-
- } // HList (URLToolbar)
-
-
-
-
- VList(Width = UseParent, Height = UseParent, DialogBack)
- {
- Call(UpperToolbar);
- Switch(GIFSettingsOnly)
- {
- case 1:
- Spacer(Height = 0, Width = 0);
-
- default:
- Call(URLEntry);
- }
-
- Spacer(Height = 5, Width = UseParent);
-
- #if Platform_Win
- Spacer(Height = 1, Width = UseParent, BackColor = DkGray);
- #endif
-
- Spacer(Height = 1, Width = UseParent, BackColor = Black);
-
- Switch(GIFSettingsOnly)
- {
- case 1:
- GenericView("PictEditorViewProc", DisableHotspots);
-
- default:
- GenericView("PictEditorViewProc");
- }
-
- //Spacer(Height = UseParent, Width = UseParent, BackColor = {65535, 0,0});
-
- #if Platform_Win
- Spacer(Height = 1, Width = UseParent, BackColor = Gray);
- Spacer(Height = 1, Width = UseParent, BackColor = White);
- Spacer(Height = 1, Width = UseParent, BackColor = DkGray);
- #else
- Spacer(Height = 1, Width = UseParent, BackColor = Black);
- #endif
-
- Spacer(Height = 4, Width = UseParent);
- Call(URLToolbar);
- Spacer(Height = 4, Width = UseParent);
-
-
- #ifdef TryMe
-
- // This is just used during testing.
- Spacer(Height = 10);
- StaticText("Debugging Menu:");
- Spacer(Height = 10);
- IntegerPopup("Image Type:", Default, imageType, Width = 150, NoCombo, kPopupFont)
- {
- IntItem("GIF", 0);
- IntItem("JPEG",1);
- IntItem("QT Movie",2);
- IntItem("Unknown", 3);
- IntItem("Client Side Map", 999);
- };
-
- CheckBox("GIFSettingsOnly", GIFSettingsOnly);
- #endif
- }
-
-